/******************************************************************************
* File description: runningtemperatureui.cpp
* Function: 实验运行：温度页面
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-26
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#include "runningtemperatureui.h"

/**
 * @brief 构造函数
 */
RunningTemperatureUI::RunningTemperatureUI()
{
    this->setResizeMode(QQuickWidget::SizeRootObjectToView);
    this->setWindowTitle("新建");
    this->_rootContext = this->getContext();
    // 传入AnalysisConfigNewUI类
    this->rootContext()->setContextProperty("runningTemp", this);
    // 资源加载
    this->setSource(QUrl("qrc:/runningtemperature.qml"));
    this->_rootObj = this->getRootObject();
    if(_rootObj)
    {

    }
}

/**
 * @brief 析构函数
 */
RunningTemperatureUI::~RunningTemperatureUI() {}

/**
 * @brief getContext 获取qmlcontext
 * @return qmlContext
 */
QQmlContext* RunningTemperatureUI::getContext() const
{
    return this->rootContext();
}

/**
 * @brief getRootObject 获取rootObject
 * @return rootObject
 */
QObject* RunningTemperatureUI::getRootObject() const
{
    return (QObject*)this->rootObject();
}
